﻿@model Blog.Models.CategoryCreateViewModel
@{
    ViewBag.Title = "Create";
}

<div class="container">
    <h2>@ViewBag.Message</h2>
    <h3>Veuillez remplir les champs : </h3><hr /><br />

    <div class="alert alert-info fade in">
        <button class="close fade" data-dismiss="alert">×</button>
        <strong>Info!</strong> Tous les champs sont obligatoires.
    </div>

    @using (Html.BeginForm())
    {
        @Html.ValidationSummary()
        <table class="form-inline">
            <tr><td><strong>Nom </strong></td><td>@Html.TextBoxFor(x => x.Name)</td></tr>
            <tr><td><strong>Description </strong></td><td>@Html.TextBoxFor(x => x.Description)</td></tr>
            <tr><td></td></tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr>
            <tr><td><button class="btn btn-success btn-medium" type="submit"><i class="icon-ok icon-white"></i> Enregistrer</button></td><td></td></tr>
        </table>
    }

    <a href="../Categories/" class="btn btn-warning btn-medium"><i class="icon-chevron-left icon-white"></i> Revenir à la liste</a>
</div>

<script src="@Url.Content("~/Scripts/bootstrap-alert.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/bootstrap-transition.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/bootstrap-validation.js")" type="text/javascript"></script>